import request from "@/utils/request";

/**
 * 查询策略绑定的设备列表
 * @param params
 * @returns
 */
export function getstrategyList(data) {
  return request({
    url: '/management/strategy.strategy_machine/getList',
    method: 'post',
    data
  })
}

/**
 * 策略绑定设备
 * @param params
 * @returns
 */
export function bindstrategy(data) {
  return request({
    url: '/management/strategy.strategy_machine/bind',
    method: 'post',
    data
  })
}

/**
 * 取消绑定
 * @param params
 * @returns
 */
export function unbindstrategy(data) {
  return request({
    url: '/management/strategy.strategy_machine/unbind',
    method: 'post',
    data
  })
}


/**
 * 策略绑定账号
 * @param params
 * @returns
 */
export function managerList(data) {
  return request({
    url: '/management/strategy.strategy_manager/getList',
    method: 'post',
    data
  })
}
/**
 * 策略绑定账号
 * @param params
 * @returns
 */
export function managerBind(data) {
  return request({
    url: '/management/strategy.strategy_manager/bind',
    method: 'post',
    data
  })
}
/**
 * 策略绑定账号
 * @param params
 * @returns
 */
export function managerUnbind(data) {
  return request({
    url: '/management/strategy.strategy_manager/unbind',
    method: 'post',
    data
  })
}